package day6;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileRead2 {
    public static void main(String[] args) {
        InputStream in = null;
        try {
            in = new FileInputStream("F:\\java82\\zhangliangmu\\作业.txt");
            int ch = 0;
            while ((ch = in.read()) != -1) {
                System.out.print(ch + " ");
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (in != null)
                    in.close();
            } catch (IOException e) {

            }
        }
    }
}
